import request from '@/utils/request'

// 查询营销宣传品发放记录列表
export function listGrant(query) {
  return request({
    url: '/kycinfo/grant/list',
    method: 'get',
    params: query
  })
}

// 查询营销宣传品发放记录详细
export function getGrant(id) {
  return request({
    url: '/kycinfo/grant/' + id,
    method: 'get'
  })
}

// 新增营销宣传品发放记录

export function addGrant(data) {
  return request({
    url: '/kycinfo/grant',
    method: 'post',
    data: data
  })
}

// 修改营销宣传品发放记录

export function updateGrant(data) {
  return request({
    url: '/kycinfo/grant',
    method: 'put',
    data: data
  })
}

// 删除营销宣传品发放记录

export function delGrant(id) {
  return request({
    url: '/kycinfo/grant/' + id,
    method: 'delete'
  })
}
